package com.gzhryc.net_marketing.cloud.business.dao.enums;

public class PayGoodsOrderLogEnum {

    public enum LockState {

        Open(1, "开放"),Close(2, "关闭");

        private Integer index;
        private String note;

        LockState(Integer index, String note) {
            this.index = index;
            this.note = note;
        }

        public Integer index() {
            return index;
        }

        public String note() {
            return note;
        }

        public static String note(Integer index) {
            LockState[] temp = LockState.values();
            for (int i = 0; i < temp.length; i++) {
                LockState item = temp[i];
                if (item.index.equals(index)) {
                    return item.note;
                }
            }
            return null;
        }
    }

    public enum ItemState {

        Success(1, "成功"),Error(2, "失败");

        private Integer index;
        private String note;

        ItemState(Integer index, String note) {
            this.index = index;
            this.note = note;
        }

        public Integer index() {
            return index;
        }

        public String note() {
            return note;
        }

        public Integer getIndex() {
            return index;
        }

        public String getNote() {
            return note;
        }

        public static String note(Integer index) {
            ItemState[] temp = ItemState.values();
            for (int i = 0; i < temp.length; i++) {
                ItemState item = temp[i];
                if (item.index.equals(index)) {
                    return item.note;
                }
            }
            return null;
        }
    }
}
